package com.ruoyi.map.service.impl;

import com.ruoyi.map.domain.MapStation;
import com.ruoyi.map.domain.Province;
import com.ruoyi.map.mapper.MapStationMapper;
import com.ruoyi.map.service.MapStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: my-ruoyi-master_202130504106_李航
 * @description:
 * @author: LiHang
 * @create: 2021-10-30 16:37
 **/
@Service
public class MapStationServiceImpl implements MapStationService {

    @Autowired
    MapStationMapper mapStationMapper;

    /**
     * 根据省份地区查询地块信息
     * @param mapStation
     * @return
     */
    @Override
    public List<MapStation> selectPlotbyProvince(MapStation mapStation) {
        return mapStationMapper.selectFromProvinceToStation(mapStation);

    }

    /**
     * 查询所有二级站的相关信息
     *
     * @return
     */
    public List<MapStation> selectAllStation() {
        List<MapStation> mapStations = mapStationMapper.selectAllStation();
        return mapStations;
    }
}
